package com.yss.sofa.report.engine.cell.page.header;

import com.yss.sofa.report.engine.Const;
import com.yss.sofa.report.engine.cell.ReportCell;

public class RowCell extends HeaderCell{
	private static final long serialVersionUID = -8862074386835445107L;
	private int height;
	private boolean rowVisible;
	protected void init() {
		super.init();
		this.type=Const.REPORT_CELL_TYPE_ROW_HEADER;
		this.rowVisible=true;
	}
	public void assignTo(ReportCell cell){
		RowCell _=(RowCell)cell;
		super.assignTo(_);
		_.height=this.height;
		_.rowVisible=this.rowVisible;
	}
	public RowCell create(){
		RowCell _=new RowCell();
		this.assignTo(_);
		return _;
	}
	public int getHeight() {
		return height;
	}
	public void setHeight(int height) {
		this.height = height;
	}
	public int toPixel(){
		return height/15;
	}
	public boolean isRowVisible() {
		return rowVisible;
	}
	public void setRowVisible(boolean rowVisible) {
		this.rowVisible = rowVisible;
	}
}
